package com.manage.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class BugManageActivity extends Activity {

	private Button bugListBtn,newBugBtn,myBugBtn;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.bug_manage_main);
		bugListBtn = (Button)findViewById(R.id.bug_list_btn);
		newBugBtn = (Button)findViewById(R.id.new_bug_btn);
		myBugBtn = (Button)findViewById(R.id.my_bug_btn);
		
		bugListBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(BugManageActivity.this, UserManageActivity.class);
				startActivity(intent);
				BugManageActivity.this.finish();
			}
		});
		
		newBugBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(BugManageActivity.this, BugAddActivity.class);
				startActivity(intent);
				BugManageActivity.this.finish();
			}
		});
		
		myBugBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(BugManageActivity.this, UserManageActivity.class);
				startActivity(intent);
				BugManageActivity.this.finish();
			}
		});
	}

}
